Color Grading Apparatus and Methods

ABSTRACT

A method for color grading input video data for display on a target display comprises obtaining target display metadata indicative of a capability of the target display, obtaining input video data metadata indicative of image characteristics of the input video data, automatically determining initial values for parameters of a parameterized sigmoidal transfer function, at least one of the initial values based at least in part on at least one of the target display metadata and the input video data metadata and mapping the input video data to color-graded video data according to the parameterized transfer function specified using the initial values.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 13/718,896 filed Dec. 18, 2012, which claims priority to U.S. Provisional Patent Application Ser. No. 61/577,647, filed on Dec. 19, 2011, the contents of all of which are incorporated by reference herein in their entireties.

TECHNICAL FIELD OF THE INVENTION

The invention relates to color grading of images. Certain embodiments provide improved apparatus and methods for adjusting color and other characteristics of images.

BACKGROUND OF THE INVENTION

Advances in camera and display technology enable images (including both still images and video content) to be captured and displayed with improved precision and greater dynamic range than before. For example, as compared with images captured by older cameras, newer cameras may capture images having:

-   -   larger color gamut;     -   greater absolute luminance range (e.g., the range of luminances         that can be recorded as distinct values before saturation);     -   greater contrast ratio;     -   greater resolution;     -   more precise output signal formats;     -   greater color depth;     -   greater luminance depth;     -   etc.         Similarly, as compared with images displayed on older displays,         images displayed on newer displays may have:     -   larger color gamut;     -   greater absolute luminance range (e.g., greater maximum         brightness);     -   greater contrast ratio;     -   greater resolution;     -   greater color depth;     -   greater luminance depth;     -   etc.

The rapidity with which advances in camera and display technology occur and the vagaries with which these advances are adopted may lead to the situation where video content is captured by cameras that are less capable than displays on which it is desired to display the video content. Conversely, it may occur that video content is captured by cameras that are more capable than display on which it is desired to display the video content. In either case, it may desirable to adjust the video content so that it better conforms to the capabilities of the displays (e.g., by expanding or shrinking color gamut, dynamic range, etc.).

The creator of a video production or other image may set tones and colors of pixels in the image so that, when viewed, the image has a desired appearance which agrees with the creator's creative intent. Adjusting tones and colors of pixels in an image may include performing color grading (or ‘color timing’) on the source video data. Color grading may be performed using a hardware/software system (sometimes referred to as a color grading station) that permits a user (sometimes referred to as a color grader or colorist) to change the video data in various ways to achieve a desired appearance. Color grading may involve manual user input (e.g., in the case of pre-recorded video productions) or may be performed automatically according to pre-determined parameters (e.g., in the case of live broadcasts).

Color grading may be used to adjust the video content to fit more or less capable displays. Where there is a mismatch between the capabilities of a camera used to capture video content and the display used in color grading, it may be difficult and/or time consuming to adjust the video content to fit the capabilities of the display using existing color grading tools. Color grading video content captured by more capable cameras using existing color grading tools may be difficult even where the capabilities of the cameras and displays are not mismatched. For example, offset, gain, gamma adjustments heretofore used in color grading may provide less intuitive control and yield less satisfactory results in the context of video content having high dynamic range (the term “high dynamic range” means dynamic ranges of 800:1 or more) or relatively high maximum luminance (e.g., maximum luminance greater than 1000 nits).

Similar difficulties may be encountered when video content color graded for display on one display (e.g., a reference display) is subsequently color graded for display on a different display (e.g., a target display).

Accordingly, there is a desire for improved color grading methods and apparatus.

BRIEF DESCRIPTION OF DRAWINGS

The drawings show non-limiting example embodiments. More particularly:

FIG. 1 is a schematic diagram of a video production workflow.

FIG. 2. is a schematic diagram of a video production workflow according to an example embodiment.

FIG. 3 is a graph of transfer function according to an example embodiment.

FIG. 4 is a method according to an example embodiment for automatically establishing control points characterizing a transfer function.

FIG. 5 is a schematic diagram of an apparatus for mapping video data according to an example embodiment.

FIG. 6 is a schematic diagram of a control interface according to an example embodiment.

DESCRIPTION OF THE INVENTION

Throughout the following description specific details are set forth in order to provide a more thorough understanding to persons skilled in the art. However, well known elements may not have been shown or described in detail to avoid unnecessarily obscuring the disclosure. Accordingly, the description and drawings are to be regarded in an illustrative, rather than a restrictive, sense.

INTERPRETATION OF TERMS

Unless the context clearly requires otherwise, throughout the description and the

-   -   “comprise,” “comprising,” and the like are to be construed in an         inclusive sense, as opposed to an exclusive or exhaustive sense;         that is to say, in the sense of “including, but not limited to”.     -   “connected,” “coupled,” or any variant thereof, means any         connection or coupling, either direct or indirect, between two         or more elements; the coupling or connection between the         elements can be physical, logical, or a combination thereof.     -   “herein,” “above,” “below,” and words of similar import, when         used to describe this specification shall refer to this         specification as a whole and not to any particular portions of         this specification.     -   “or,” in reference to a list of two or more items, covers all of         the following interpretations of the word: any of the items in         the list, all of the items in the list, and any combination of         the items in the list.     -   the singular forms “a”, “an” and “the” also include the meaning         of any appropriate plural forms.     -   Words that indicate directions such as “vertical”, “transverse”,         “horizontal”, “upward”, “downward”, “forward”, “backward”,         “inward”, “outward”, “vertical”, “transverse”, “left”, “right”,         “front”, “back”, “top”, “bottom”, “below”, “above”, “under”, and         the like, used in this description and any accompanying claims         (where present) depend on the specific orientation of the         apparatus described and illustrated. The subject matter         described herein may assume various alternative orientations.         Accordingly, these directional terms are not strictly defined         and should not be interpreted narrowly.

FIG. 1 shows schematically an example video production workflow 20. Raw video data 22 is acquired and conformed at a conforming stage 24 to provide conformed video data 26. Raw video data 22 may comprise video data acquired from different sources (e.g., captured from different cameras, captured by the same camera under different conditions, scanned from legacy video media, computer generated, etc.). Conforming stage 24 converts the raw video data 22 from any of a number of such different sources to a common format, color space and tonal range. Tones and/or colors in conformed video data 26 are adjusted in a reference color grading stage 28. Reference color grading stage 28 may be performed by a color grader (e.g. a human who uses tools provided by the color timing station by way of a suitable user interface) using a color timing station to produce reference color graded video data 32, or may be performed automatically according to pre-determined parameters (e.g., in the case of live broadcasts) to produce reference color graded video data 32. The color timing station may include a professional monitor 30 on which the color grader views images specified by the video data being color graded. Using tools and controls provided by the color timing station, the colorist adjusts tones and/or colors of all or parts of the images which make up the video production to achieve an overall appearance which, when viewed on display 30, matches the colorist's artistic intent.

Alternate color grading stage 34 may be performed on reference color graded video data 32 to produce alternate color graded video data 38. Alternate color grading 34 is performed with a view to ensuring that the appearance of alternate color graded video data 38 on a particular target display 36 meets certain criteria. For example, ensuring that the artistic intent of the color grader who performed reference color grading 28 is substantially preserved when alternate color graded video data 38 is displayed on target display 36 may be an objective of alternate color grading 34. Alternate color grading 34 may be performed automatically (e.g., without human intervention), by a color grader, or by a combination of automatic and manual operations.

Color grading is typically an iterative process. A color grader makes adjustments to video data, views the adjusted video data on a monitor (e.g., professional monitor 30), and makes further adjustments based on the appearance of video data. Since the capabilities of the color grading monitor limit what adjustments to video data can be perceived by the color grader, the color grading monitor determines the freedom that a color grader has to express her artistic intent. That is to say, a relatively more capable color professional monitor 30 will enable the color grader to explore a relatively broader realm of aesthetic possibility.

Where the dynamic range of professional monitor 30 exceeds the dynamic range of conformed video data 26, a color grader may have to make relatively large adjustments to conformed video data 26 in order to explore the aesthetic possibilities that professional monitor 30 can display (in colloquial terms, conformed video data 26 may have to be “pushed” to the limits of display 30). Large adjustments to conformed video data 26 may also be required where the dynamic range of conformed video data 26 exceeds the dynamic range of professional monitor 30. For example, where the dynamic range of conformed video data 26 exceeds the dynamic range of professional monitor 30, adjustments to displayed video data may be required to reduce or eliminate clipping, banding or other undesirable visual artefacts that appear when video data is displayed (in colloquial terms, to conformed video data 24 may have to be “pulled” into a range that can be displayed on monitor 30). Similar consideration apply, mutatis mutandis, in alternate color grading stage 34 where the capabilities of professional monitor 30 and target display 36 are different. Making relatively large adjustments to conformed video data 26 may be time consuming. Making relatively large adjustments to conformed video data 26 can potentially introduce undesirable distortions in the video data being color graded. The risk of introducing undesirable distortions in the video data, which may be difficult to correct, may be particularly acute where the color grading is performed using offset, gain and gamma adjustments. For example, where the dynamic range of video data is expanded using offset, gain and/or gamma adjustments, it may be particularly difficult to preserve the mid-range contrast of the source video data.

FIG. 2 is a schematic diagram of a video production workflow 40 according to an example embodiment. Workflow 40 comprises components of workflow 20, and like reference numbers are used to denote like components. Workflow 40 comprises pre-grading stage 42 and grading initialization 44. Pre-grading stage 42 and grading initialization 44 at least partially automatically (e.g., without human intervention) adjust input video data (conformed video data 24 and reference color graded video data 32, respectively), to match, at least approximately, the capabilities of a destination display (professional display 30 and target display 36, respectively). Automatic adjustments applied in pre-grading stage 42 and grading initialization 44 may reduce the amount of manual adjustments necessary to achieve the aims of reference color grading stage 28 and alternate color grading stage 34.

At least some of the automatic adjustments applied in pre-grading stage 42 and grading initialization 44 comprise mappings according to parameterized transfer function(s). Advantageously, such parameterized transfer function may be characterized by a plurality of fixable points, which may be referred to as ‘control points’, and a free parameter that adjusts a slope of the transfer function in a mid-range region. This slope corresponds to mid-range contrast. The mid-range region of the transfer function may be linear in log-log space or approach linearity in log-log space.

FIG. 3 shows an example transfer function 60, which may be used to map video data in pre-grading stage 42 or grading initialization 44. In FIG. 3, input values are indicated on the horizontal axis and output values are indicated on the vertical axis. Each axis has a logarithmic scale. Transfer function 60 is monotonically increasing, sigmoidal, and may be characterized by a plurality of parameters. In some embodiments, transfer function 60 is characterized by a set of five points, namely:

-   -   a minimum extremity control point 62A,     -   a footroom control point 62B,     -   an mid-tone control point 62C,     -   a headroom control point 62D, and     -   a maximum extremity control point 62E.         Each point is defined by input luminance (represented by the         point's horizontal position) and output luminance (represented         by the point's vertical position. Transfer function 60 may also         be characterized by the slope at mid-tone control point 62C. In         some embodiments, transfer function 60 may also be characterized         by slope at one or both of minimum extremity control point 62A         and maximum extremity control point 62E. Transfer function 60         illustrates an example for mapping input luminance values to         output luminance values, although it is to be understood that         similar transfer functions may be used for mapping color values.

In the illustrated example, transfer function 60 comprises a substantially linear (in log-log space) mid-tone region 64C about mid-tone control point 62C. The substantial linearity of mid-tone region 64C results in transfer function 60 preserving dynamic range of the mid-tones of input video data 56. The slope of transfer function 60 in mid-tone region 64C may be adjustable with a free parameter. The slope of mid-tone region 64C corresponds to mid-range contrast. Adjustment of the free parameter provides a means for controlling mid-range contrast.

Transfer function 60 comprises a substantially concave upward region 64AB between minimum extremity control point 62A and footroom control point 62B. The position of footroom control point 62B relative to minimum extremity control point 62A provides control over the “sharpness” of the roll-off at the bottom (darker) end of the transfer function. A footroom control point 62B that is relatively further away from minimum extremity control point 62A along the horizontal axis results in transfer function 60 mapping more low luminance levels of input video data 54 to the range of output luminance levels defined by the vertical separation between footroom control point 62B and minimum extremity control point 62A, which decreases contrast in the darker regions of input video data 54. A footroom control point 62B that is relatively further away from minimum extremity control point 62A along the vertical axis results in transfer function 60 mapping low luminance levels of input video data 56 to a broader the range of output luminance levels, which increases contrast in the darker regions of input video data 54.

Transfer function 60 comprises a substantially convex upward region 64DE between headroom control point 62D and maximum extremity control point 62E. The position of headroom control point 62D relative to maximum extremity control point 62E provides control over the “sharpness” of the roll-off at the top (brighter) end of the transfer function. A headroom control point 62D that is relatively further away from maximum extremity control point 62E along the horizontal axis results in transfer function 60 mapping more high luminance levels of input video data 54 to the range of output luminance levels defined by the vertical separation between headroom control point 62D and maximum extremity control point 62E, which decreases contrast in the brighter regions of input video data 54. A headroom control point 62D that is relatively further away from maximum extremity control point 62E along the vertical axis results in transfer function 60 mapping high luminance levels of input video data 56 to a broader the range of output luminance levels, which increases contrast in the brighter regions of input video data 54.

In some embodiments, transfer function 60 is specified by a computable function of parameter values. Coordinates of control points 62A-E and the slope at mid-tone control point 62C may correspond to these parameter values, or be determinable as a computable function of thereof. In some embodiments, an invertable computable function relates the coordinates of at least some of control points 62A-62E to one or more input parameters of a computable function that specifies transfer function 60. It will be understood that where control points characterizing a transfer function are adjusted, parameters defining a transfer function (e.g., in a mathematical sense) may be adjusted correspondingly.

Adjustments applied in pre-grading stages 42 and grading initialization 44 may be determined, at least partially, automatically based metadata. Metadata may be obtained from an external source (e.g., a data store, a side channel to input video data, etc.) or may be obtained from analysis of input video data. In some embodiments, metadata obtained in pre-grading stage 42 is used in grading initialization 44.

One method for automatically establishing control points characterizing transfer function 60 in a specific case is illustrated by the method 70 of FIG. 4. Pre-grading stage 42 and grading initialization 44 may comprise performing method 70. Method 70 uses information about the destination display and information about the input video data to determine appropriate values for control points that define transfer function 60. In some embodiments, method 70 is applied to establish the control points characterizing transfer function 60 on a scene-by-scene basis.

In step 71, metadata is obtained. Step 71 may comprise obtaining metadata from an external source, for example. Non-limiting examples of types of metadata that may be acquired from external sources include:

-   -   destination display characteristics (e.g., minimum luminance         (black level), maximum luminance (white level), middle grey         level, gamut boundary, etc.);     -   video data acquisition parameters (e.g., light level, exposure,         lens aperture, light sensor sensitivity (ISO), etc.);     -   intended viewing environment (e.g., ambient lighting, background         lighting, viewing distance, etc.); and     -   the like.

In some embodiments, step 71 comprises extracting metadata from video data to which transfer function 60 is to be applied. Some Example methods for extracting metadata from video data are described below. Non-limiting examples of metadata that may be extracted from video data include:

-   -   luminance histograms;     -   light luminance levels;     -   highlight luminance levels;     -   low-level noise floor;     -   foot room;     -   head room;     -   mid level;     -   statistical measures of video data (e.g., geometric mean,         logarithmic mean, median, etc.)     -   feature maps (e.g. light sources, salient features, etc.);     -   luminance ranges for protected chromaticities (e.g., skin tone         etc.); and     -   the like.

Step 72 establishes minimum extremity control point 62A. The vertical coordinate (output value) of minimum extremity control point 62A may be determined as the black level of the destination display, for example. The horizontal coordinate (input value) of minimum extremity control point 62A may be determined as a small percentile (e.g. the 0.1 percentile) of the luminance channel in the input signal.

Step 73 establishes maximum extremity control point 62E. The vertical coordinate (output value) of minimum extremity control point 62A may be determined as the white level of the destination display. The horizontal coordinate (input value) of maximum extremity control point 62E may be determined as a maximum luminance for input video data 54.

Step 74 establishes mid-tone control point 62C. The position of a middle control point 62C affects the overall brightness of a displayed image (e.g. the ‘key’ of the image). Appropriate selection of mid-tone control point 62C facilitates the input image being perceived as being appropriately bright on the destination display. The horizontal value (input value) for point 62C may be determined in various ways, such as:

-   -   calculating a central tendency statistic (e.g., geometric mean,         logarithmic geometric mean, or the like) of luminance of input         video data 56, and determining the horizontal value for point         62C based at least in part on this statistic;     -   based on salient features (e.g., could be set to be within a         predetermined range of one or more salient features in input         video data 56);     -   identifying pixels of input video data 56 having chromaticities         consistent with protected colors such as, for example,         skin-tone, calculating a central tendency statistic of luminance         of these pixels, and determining the horizontal value for point         62C based at least in part on this statistic;     -   calculating the logarithmic average of the horizontal values for         minimum extremity control point 62A and maximum extremity         control point 62B, and determining the horizontal value for         point 62C based at least in part on this average.

The vertical value (output value) for point 62C may be based on a luminance level corresponding to middle grey for the destination display. For example, in a display that can produce luminance values between 1 cd/m² and 400 cd/m², middle grey is approximately 20 cd/m² (which is logarithmically half-way between 1 and 400 cd/m²). An appropriate value for point 62C may therefore be a value corresponding to middle grey (e.g. about 20 cd/m² in this example).

In some embodiments, the mid-tone control point 62C is selected so as to make the ratio of the coordinate of the mid-tone control point to the coordinate of the extremity control point equal, within a desired factor, for both the input (horizontal coordinate) and output (vertical coordinate) of the transfer function.

Step 75 establishes footroom control point 62B. The horizontal value for point 62B may be set in various ways, such as:

-   -   determining an input luminance level beneath which low luminance         camera noise is visible, and setting the horizontal value of         footroom control point 62B at or above this input luminance         level;     -   obtaining a luminance histogram for the input video data and         setting the horizontal value of footroom control point 62B at or         above the input luminance of a predetermined lower percentile of         the histogram (e.g., the 5th percentile; the predetermined lower         percentile may be user adjustable in some embodiments);     -   setting the horizontal value of footroom control point 62B         according to a monotonically increasing function of the exposure         used to capture of the video data (e.g., as a monotonically         increasing function of lens aperture, as a monotonically         decreasing function of shutter speed, as a monotonically         increasing function of light sensor sensitivity (ISO)). For         example, if the camera used to capture the video data was set         for greater exposure, it may be assumed that the         cinematographer's intent was to capture more dark detail, and         footroom control point 62B may be set to provide less         compression of low luminance levels and provide a more gentle         roll-off.

The vertical value for footroom control point 62B may be selected so its ratio to the vertical value of the minimum extremity control point 62A is the same as the ratio of the horizontal values of footroom control point 62B and minimum extremity control point 62A.

Step 76 establishes headroom control point 62D. The horizontal value for point 62D may be set in various ways, such as:

-   -   determining an input luminance level above which pixels are         presumed to be to light sources (e.g., by identifying light         sources using a light source detection algorithm and determining         the minimum luminance value of pixels determined to belong to         light sources) and setting the horizontal value of headroom         control point at or below this input luminance level;     -   obtaining a luminance histogram for the input video data and         setting the horizontal value of headroom control point 62D at or         below the input luminance of a predetermined higher percentile         of the histogram (e.g., the 95th percentile; the predetermined         higher percentile may be user adjustable in some embodiments);     -   setting the horizontal value of headroom control point 62D         according to a monotonically decreasing function of the exposure         used to capture of the video data (e.g., as a monotonically         decreasing function of lens aperture, as a monotonically         increasing function of shutter speed, as a monotonically         decreasing function of light sensor sensitivity (ISO)). For         example, if the camera used to capture the video data was set         for less exposure, it may be assumed that the cinematographer's         intent was to avoid overexposure clipping, and headroom control         point 62D may be set to provide less compression of high         luminance levels and provide a more gentle roll-off.

The vertical value for headroom control point 62D may be selected so its ratio to the vertical value of the maximum extremity control point 62E is the same as the ratio of the horizontal values of headroom control point 62D and maximum extremity control point 62E.

Step 77 establishes a free parameter n which controls the mid-tone slope of transfer function 60. In some embodiments n is set to 1. When n is set to 1, the application of transfer function 60 to input video data does result in substantially no dynamic range compression or expansion in the mid-tone range. In some embodiments n may be greater than or less than 1.

[The order of steps 72-77 in method 70 may vary from the order shown in the illustrated example of FIG. 4. Also, in some embodiments, two or more of steps 72-77 may be performed at the same time in parallel.

In some embodiments, method 70 may be adapted to determine parameters of a sigmoidal transfer function for a plurality of color channels. For example, in an RGB color space, method 70 may determine parameters analogous to points 62A-E and parameter n for each of the R, G and B color channels based on luminance for that color channel in input video data 56.

In some embodiments, adjustments applied in pre-grading stages 42 and grading initialization 44 are guided by high-level input from a color grader. For example, a color grader may identify one or more salient regions of video data image(s). Salient regions may comprise image features whose perception by viewers is judged important by the color grader, for example. In some embodiments, a luminance histogram for salient regions is computed, and the horizontal values for footroom control point 62B and headroom control point 62D are set according to, or based at least in part on, luminance values at predetermined percentiles in the luminance histogram for the salient regions (e.g., the 1st and 99th percentiles). In some embodiments, one or more statistics of luminance values in the salient region(s) are computed, and the horizontal values of footroom control point 62B, mid-tone control point 62C and/or headroom control point 62D are set based at least in part on these statistic(s). For example, the horizontal value of footroom control point 62B may be determined as the luminance at three geometric standard deviations below the geometric mean of luminance, and the horizontal value of headroom control point 62D may be determined as the luminance at three geometric standard deviations above the geometric mean of luminance.

In some embodiments, adjustments applied in pre-grading stages 42 and grading initialization 44 are guided by a color grader's selection of one or more particular methods for automatically determining values for parameters of a transfer function. For example, a color grader may be presented with a menu of different options for automatically determining the horizontal value for footroom control point 62B (e.g., comprising two or more of the example ways for setting footroom control point 62B above), and footroom control point 62B may be set according to option selected by the color grader.

A color grader may be assisted in her selection of options for determining values for transfer function parameters by sample images obtained by the application of transfer functions defined by values determined according to particular options. For instance, a baseline set of parameters for a transfer function may be assumed and a sample image obtained by applying a transfer function, as defined by the baseline set of parameters, to input video data, and the sample image displayed to the color grader. In response to the color grader's selection of a different option for determining a value for a parameter of the transfer function, the transfer function, as defined by the value for the parameter determined according to the different option, is applied to the input video data and the sample image obtained thereby displayed to the color grader.

Reference color grading 28 and alternate color grading 34 may comprise manually adjusting parameters of a transfer function applied in pre-grading 42 or grading initialization 44, respectively. FIG. 5 is a schematic diagram of an apparatus 80 according to an example embodiment for mapping video data according to an adjustable, parameterized transfer functions.

In this example, apparatus 80 has an input 82 for receiving video data 84 to be displayed on a target display 86 of a color grading station 88. Video data 84 may comprise raw video data, conformed video data, or color-timed video data embodying the intent of a creator. In the illustrated embodiment, video data 84 is provided in the native color space of target display 86. Apparatus 80 may comprise a color space translator (not shown) that translates pixel values for video data 84 specified in a color space other than the native color space of display 86 into the native color space of target display 86.

In the illustrated example embodiment, the native color space of target display 86 is an RGB color space, which specifies colors in terms of the intensities of primary colors of target display 86. Video data 84 comprises values 84R, 84G, and 84B which respectively correspond to red, green and blue (RGB) primaries of target display 86.

Each of values 84R, 84G, and 84B is independently mapped to a new value by a mapping unit 90. Mapping units 90R, 90G, and 90B are shown. Each mapping unit maps a corresponding input value from video data 84 to a transformed value. In the illustrated embodiment, the transformed values are indicated by 84R′, 84G′ and 84B′ respectively.

Each mapping unit 90 maps its input value to an output value according to a parameterized transfer function 92 (individually labelled as transfer functions 92R, 92G and 92B in FIG. 5). Advantageously, each transfer function 92 may be characterized by a plurality of fixable points, which may be referred to as ‘control points’, and a free parameter that adjusts a slope of the transfer function in a mid-range region. Transfer functions 92 may, for example, be substantially similar to transfer function 60 as discussed above, and parameters therefor may be determined in substantially the same as for transfer function 60 as discussed above.

The transfer functions 92R, 92G and 92B applied to red, green and blue channel signals by mapping units 90R, 90G and 90B may be identical or different. Mapping units 90R, 90G and 90B may be independent or may share hardware and/or software components.

Transfer functions 92R, 92G and 92B may initially be characterized by initial control points determined by initial control point generator 94. Control point generator 94 is configured to determine control points that characterize transfer function 92R, 92G and 92B at least partially automatically. Control points generated by control point generator 94 may correspond to parameters that define transfer functions 92R, 92G and 92B.

In some embodiments, control point generator 94 is configured to determine control points that characterize transfer functions 92R, 92G and 92B automatically (i.e., without user intervention). For example, control point generator 94 may be configured to determine control points of transfer function 60 according to any or any combination of the methods discussed above in relation to the control points 62A-E. Control point generator 94 may have an input 96 for receiving external metadata 98, and be configured to determine initial control points based at least in part on external metadata 98. In some embodiments, control point generator 94 is configured to extract metadata from input video data 84, and is configured to determine initial control points based at least in part on such extracted metadata.

In some embodiments, initial control point generator 94 is configured to generate other information characterizing transfer functions 92R, 92G and 92B, such as mid-tone slope, for example.

In some embodiments, the determination of control points that characterize transfer function 92R, 92G and 92B by control point generator 94 is guided at a high-level by input from a color grader, such as by identification of salient regions, selection of particular methods for automatically determining parameter values, and the like.

Color grading station 88 comprises a control interface 100. Control interface 100 comprises controls for adjusting transfer functions 92R, 92G, 92B. A color grader may manipulate the controls of control interface 100 to adjust transfer functions 92R, 92G and 92B. In some embodiments, the control interface 100 may be used to refine initial control points characterizing transfer functions 92R, 92G and 92B determined by initial control point generator 94. Such refinement of initial control points may reduce, or even eliminate, the need for further color grading adjustments (e.g., such as adjustment that would otherwise need to be applied in reference color grading 28 and/or alternate color grading 34).

A particular example embodiment of control interface 100 is shown in FIG. 6. Control interface 100 is adapted for adjusting the values of parameters of red, green and blue color channel transfer functions of the same type as transfer function 60 discussed above. In the illustrated embodiment, control interface 100 comprises the following controls:

-   -   single degree of freedom control point horizontal value controls         102AH, 102CH and 102EH (dials in the illustrated example         embodiment), operable to adjust values which correspond to         horizontal values of control points 62A, 62C and 62E,         respectively;     -   single degree of freedom control point vertical value controls         102AV, 102CV and 102EV (dials in the illustrated example         embodiment), operable to adjust values which correspond to         vertical values of control points 62A, 62C and 62E,         respectively;     -   single degree of freedom control point controls 102B and 102D         (dials in the illustrated example embodiment), operable to         adjust values which correspond to parameters control points 62B         and 62D;     -   single degree of freedom mid-tone slope control 104 (a dials in         the illustrated example embodiment), operable to adjust a value         which corresponds to the slope in mid-tone range 64C;     -   two degree of freedom color balance controls 106AB, 106C and         106DE (trackballs in the illustrated example embodiment), which         are operable to adjust color balance in ranges 64AB, 64C and         64DE (e.g., by adjusting points corresponding to all of points         62B, 62C and 62D together in transfer functions for one or more         color channels, or by shifting transfer functions for one or         more color channels horizontally relative to each other); and     -   single degree of freedom saturation controls 108AB, 108C, and         108DE (dials in the illustrated example embodiment), which are         operable to adjust color saturation in ranges 64AB, 64C and         64DE.

In the illustrated example embodiment, control interface 100 is linked to control points that characterize transfer functions 92R, 92G and 92B such that manipulation of tone controls 102 adjusts transfer functions 92R, 92G and 92B in the same manner. As a result, in this embodiment, color balance may be substantially maintained.

In the illustrated example embodiment, control interface 100 is linked to control points that characterize transfer functions 92R, 92G and 92B such that manipulation of color balance controls 106 adjusts transfer functions 92R, 92G and 92B differently. For instance, the manipulations of controls 106 may adjust transfer functions 92R, 92G and 92B to change color balance in a vector manner. In an example embodiment, input (δx, δy) to a color balance control 106 maps to changes to parameters corresponding to control points 62B, 62C and 62D of transfer functions 92R, 92G and 92B according to the following relationship:

δR=1.5749δy  (1)

δG=−0.18734δx−0.4681246y  (2)

δB=1.8556δx  (3)

Some embodiments provide particular control schemes by which manipulations of the controls of control interface 100 affect control points characterizing of transfer functions 92R, 92G and 92B. In some schemes, control points are coupled, such that manipulation of a control corresponding to one control point causes, at least in some circumstances, the one control point and at least one other linked control point to be adjusted. The following are examples of such linking applicable to the example embodiment in which transfer functions 92R, 92G and 92B have the form of transfer function 60:

-   -   Manipulations of control 102AV adjust the vertical values for         minimum extremity control points 62A and mid-tone control points         62C for each of transfer functions 92R, 92G and 92B. The         adjustment to the vertical value of mid-tone control point 62C         may be scaled preserve both the pre-adjustment ratio of the         vertical values of maximum extremity control point 64E and         mid-tone control point 62C, and the pre-adjustment ratio of the         vertical values of minimum extremity control point 64A and         mid-tone control point 62C.     -   Manipulations of control 102CV adjust the vertical values for         mid-tone control point 62C and one of minimum extremity control         point 62A and maximum extremity control point 62E, for each of         transfer functions 92R, 92G and 92B. The adjustment to the         vertical value of the one of control points 62A and 62E may be         scaled preserve both the pre-adjustment ratio of the vertical         values of maximum extremity control point 64E and mid-tone         control point 62C, and the pre-adjustment ratio of the vertical         values of minimum extremity control point 64A and mid-tone         control point 62C.     -   Manipulations of control 102EV adjust the vertical values for         minimum extremity control point 62A and mid-tone control point         62C, for each of transfer functions 92R, 92G and 92B. The         adjustment to the vertical value of mid-tone control point 62C         may be scaled preserve both the pre-adjustment ratio of the         vertical values of maximum extremity control point 64E and         mid-tone control point 62C, and the pre-adjustment ratio of the         vertical values of minimum extremity control point 64A and         mid-tone control point 62C.     -   Manipulations of control 102AH adjust the horizontal values for         minimum extremity control points 62A and mid-tone control points         62C for each of transfer functions 92R, 92G and 92B. The         adjustment to the horizontal value of mid-tone control point 62C         may be scaled preserve both the pre-adjustment ratio of the         horizontal values of maximum extremity control point 64E and         mid-tone control point 62C, and the pre-adjustment ratio of the         horizontal values of minimum extremity control point 64A and         mid-tone control point 62C.     -   Manipulations of control 102CH adjust the horizontal values for         mid-tone control point 62C and one of minimum extremity control         point 62A and maximum extremity control point 62E, for each of         transfer functions 92R, 92G and 92B. The adjustment to the         horizontal value of the one of control points 62A and 62E may be         scaled preserve both the pre-adjustment ratio of the horizontal         values of maximum extremity control point 64E and mid-tone         control point 62C, and the pre-adjustment ratio of the         horizontal values of minimum extremity control point 64A and         mid-tone control point 62C.     -   Manipulations of control 102EH adjust the horizontal values for         minimum extremity control point 62A and mid-tone control point         62C, for each of transfer functions 92R, 92G and 92B. The         adjustment to the horizontal value of mid-tone control point 62C         may be scaled preserve both the pre-adjustment ratio of the         horizontal values of maximum extremity control point 64E and         mid-tone control point 62C, and the pre-adjustment ratio of the         horizontal values of minimum extremity control point 64A and         mid-tone control point 62C.     -   When the vertical values mid-tone control point 62C and footroom         control point 62B are the same and control 102CV is manipulated         to downwardly adjust the vertical value of mid-tone control         point 62C, both mid-tone control point 62C and footroom control         point 62B are adjusted by the same amount.     -   When the vertical values mid-tone control point 62C and headroom         control point 62D are the same and control 102CV is manipulated         to upwardly adjust the vertical value of mid-tone control point         62C, both mid-tone control point 62C and headroom control point         62D are adjusted by the same amount.     -   When the horizontal values mid-tone control point 62C and         footroom control point 62B are the same and control 102CH is         manipulated to leftwardly adjust the horizontal value of         mid-tone control point 62C, both mid-tone control point 62C and         footroom control point 62B are adjusted by the same amount.     -   When the horizontal values mid-tone control point 62C and         headroom control point 62D are the same and control 102CH is         manipulated to rightwardly adjust the horizontal value of         mid-tone control point 62C, both mid-tone control point 62C and         headroom control point 62D are adjusted by the same amount.

In some embodiments, image colors are re-saturated to restore, at least approximately, the saturation lost as a result of tonal compression. Where tonal compression is not constant across the range of tones in an image, different levels of tonal compression applied to different tones results in different colors being de-saturated to different degrees. In general, the greater the amount of tonal compression, the greater the amount of de-saturation. The amount of tonal compression may be quantified by the log-log slope of the tone-curve. As an illustrative example, transfer function 60 in FIG. 3 has a steeper log-log slope in the substantially linear mid-tone region 64C than it does in the vicinity of minimum extremity control point 62A and maximum extremity control point 62E. Accordingly, tone compression going from the input (horizontal coordinate) to output (vertical coordinate) is greater in the vicinity of values 62A and 62E as compared with substantially linear mid-tone region 64C.

Applying a global re-saturation technique may re-saturate all pixels without regard to the amount of de-saturation caused by tonal compression. Some embodiments re-saturate transformed image data pixels according to the amount of tonal compression of the transformed image data pixels. Given that the amount of tonal compression corresponds to the log-log slope of the tone-curve, the amount of tonal compression for an input value L_(in) may be determined as the derivative of the transfer function L_(out)=f(L_(in)) at the input value L_(in). The log-log slope of this transfer function can be determined by setting L_(in)=e^(x) and L_(out)=e^(y) and solving for dy/dx, which represents the log-log slope. For a tone curve according to Equation (1) above, y may be expressed as:

y=log(c ₁ +c ₂ e ^(nx))−log(1+c ₃ e ^(nx))  (4)

and the log-log slope c(L_(in)) at any point on the tone curve may be calculated as the derivative of y with respect to x at L_(in):

$\begin{matrix} {{c\left( L_{i\; n} \right)} = {\frac{y}{x} = \frac{{nL}_{i\; n}^{n}\left( {c_{2} - {c_{1}c_{3}}} \right)}{\left( {c_{1} + {c_{2}L_{i\; n}^{n}}} \right)\left( {1 + {c_{3}L_{i\; n}^{n}}} \right)}}} & (5) \end{matrix}$

For color channels R, G, and B, re-saturated drive values (R_(re-sat), G_(re-sat), B_(re-sat)) may be determined in terms of the normalized driving values as follows:

$\begin{matrix} {R_{{re} - {sat}} = {R_{norm}\left( \frac{C_{i\; n}}{L_{i\; n}} \right)}^{{f{(c)}} - c}} & (6) \\ {G_{{re} - {sat}} = {G_{norm}\left( \frac{C_{i\; n}}{L_{i\; n}} \right)}^{{f{(c)}} - c}} & (7) \\ {B_{{re} - {sat}} = {B_{norm}\left( \frac{C_{i\; n}}{L_{i\; n}} \right)}^{{f{(c)}} - c}} & (8) \end{matrix}$

where f(c) is given as:

${f(c)} = \frac{\left( {1 + k_{1}} \right)c^{{k\;}_{2}}}{1 + {k_{1}c^{k_{2}}}}$

and k₁ and k₂ are constants. In some embodiments k₁=1.6474. In some embodiments, k₁=1.647. In some embodiments, k₁=1.68. In some embodiments (including without limitation some embodiments in which k₁=1.6474, k₁=1.647 or k₁=1.68) k₂=0.9925. In some embodiments (including without limitation some embodiments in which k₁=1.6474, k₁=1.647 or k₁=1.68) k₂=0.992. In some embodiments (including without limitation some embodiments in which k₁=1.6474, k₁=1.647 or k₁=1.68) k₂=0.99. It will be appreciated that acceptable results may be obtained using other values of k₁ and k₂. It will also be appreciated that re saturated drive values, R_(re-sat), G_(re-sat) and B_(re-sat) could be calculated based on the display linear luminance values for each of the red, green and blue color channels (R_(out), G_(out) and B_(out)).

Embodiments of the invention may be implemented using specifically designed hardware, configurable hardware, programmable data processors configured by the provision of software (which may optionally comprise ‘firmware’) capable of executing on the data processors, special purpose computers or data processors that are specifically programmed, configured, or constructed to perform one or more steps in a method as explained in detail herein and/or combinations of two or more of these. Examples of specifically designed hardware are: logic circuits, application-specific integrated circuits (“ASICs”), large scale integrated circuits (“LSIs”), very large scale integrated circuits (“VLSIs”) and the like. Examples of configurable hardware are: one or more programmable logic devices such as programmable array logic (“PALs”), programmable logic arrays (“PLAs”) and field programmable gate arrays (“FPGAs”)). Examples of programmable data processors are: microprocessors, digital signal processors (“DSPs”), embedded processors, graphics processors, math co-processors, general purpose computers, server computers, cloud computers, mainframe computers, computer workstations, and the like. For example, one or more data processors in a control circuit for a device may implement methods as described herein by executing software instructions in a program memory accessible to the processors.

Processing may be centralized or distributed. Where processing is distributed, information including software and/or data may be kept centrally or distributed. Such information may be exchanged between different functional units by way of a communications network, such as a Local Area Network (LAN), Wide Area Network (WAN), or the Internet, wired or wireless data links, electromagnetic signals, or other data communication channel.

While processes or blocks are presented in a given order in the above examples, alternative examples may perform routines having steps, or employ systems having blocks, in a different order, and some processes or blocks may be deleted, moved, added, subdivided, combined, and/or modified to provide alternative or subcombinations. Each of these processes or blocks may be implemented in a variety of different ways. Also, while processes or blocks are at times shown as being performed in series, these processes or blocks may instead be performed in parallel, or may be performed at different times.

In addition, while elements are at times shown as being performed sequentially, they may instead be performed simultaneously or in different sequences. It is therefore intended that the following claims are interpreted to include all such variations as are within their intended scope.

Software, hardware and other modules may reside on servers, workstations, personal computers, tablet computers, image data encoders, image data decoders, PDAs, color-grading tools, video projectors, audio-visual receivers, displays (such as televisions), digital cinema projectors, media players, and other devices suitable for the purposes described herein. Those skilled in the relevant art will appreciate that aspects of the system can be practised with other communications, data processing, or computer system configurations, including: Internet appliances, hand-held devices (including personal digital assistants (PDAs)), wearable computers, all manner of cellular or mobile phones, multi-processor systems, microprocessor-based or programmable consumer electronics (e.g., video projectors, audio-visual receivers, displays, such as televisions, and the like), set-top boxes, color-grading tools, network PCs, mini-computers, mainframe computers, and the like.

The invention may also be provided in the form of a program product. The program product may comprise any non-transitory medium which carries a set of computer-readable instructions which, when executed by a data processor, cause the data processor to execute a method of the invention. Program products according to the invention may be in any of a wide variety of forms. The program product may comprise, for example, non-transitory media such as magnetic data storage media including floppy diskettes, hard disk drives, optical data storage media including CD ROMs, DVDs, electronic data storage media including ROMs, flash RAM, EPROMs, hardwired or preprogrammed chips (e.g., EEPROM semiconductor chips), nanotechnology memory, or the like. The computer-readable signals on the program product may optionally be compressed or encrypted.

In some embodiments, the invention may be implemented using software. For greater clarity, “software” includes any instructions executed on a processor, and may include (but is not limited to) firmware, resident software, microcode, and the like. Both processing hardware and software may be centralized or distributed (or a combination thereof), in whole or in part, as known to those skilled in the art. For example, software and other modules may be accessible via local memory, via a network, via a browser or other application in a distributed computing context or via other means suitable for the purposes described above.

Where a component (e.g. a software module, processor, assembly, device, circuit, etc.) is referred to above, unless otherwise indicated, reference to that component (including a reference to a “means”) should be interpreted as including as equivalents of that component any component which performs the function of the described component (i.e., that is functionally equivalent), including components which are not structurally equivalent to the disclosed structure which performs the function in the illustrated exemplary embodiments of the invention.

Specific examples of systems, methods and apparatus have been described herein for purposes of illustration. These are only examples. The technology provided herein can be applied to systems other than the example systems described above. Many alterations, modifications, additions, omissions and permutations are possible within the practice of this invention. This invention includes variations on described embodiments that would be apparent to the skilled addressee, including variations obtained by: replacing features, elements and/or acts with equivalent features, elements and/or acts; mixing and matching of features, elements and/or acts from different embodiments; combining features, elements and/or acts from embodiments as described herein with features, elements and/or acts of other technology; and/or omitting features, elements and/or acts from described embodiments.

It is therefore intended that the following appended claims and claims hereafter introduced are interpreted to include all such modifications, permutations, additions, omissions and sub-combinations as may reasonably be inferred. The scope of the claims should not be limited by the preferred embodiments set forth in the examples, but should be given the broadest interpretation consistent with the description as a whole. 

What is claimed is:
 1. A method for color grading input video data for display on a target display, the method comprising: obtaining target display metadata indicative of a capability of the target display; obtaining input video data metadata indicative of image characteristics of the input video data; automatically determining initial values for parameters of a parameterized transfer function, at least one of the initial values based at least in part on at least one of the target display metadata and the input video data metadata; and, mapping the input video data to color-graded video data according to the parameterized transfer function specified using the initial values, wherein the parameterized transfer function comprises a mid-range region, the mid-range region being linear in log-log space or approaching linearity in log-log space.
 2. A method according to claim 1 wherein the parameterized transfer function further comprises a non-linear region in log-log space.
 3. A method according to claim 2 wherein the parameters comprise a plurality of control points which characterize the parameterized transfer function.
 4. A method according to claim 3 wherein the control points comprise a minimum extremity control point, a mid-tone control point, and a maximum extremity control point.
 5. A method according to claim 4 wherein the control points further comprise a footroom control point and a headroom control point.
 6. A method according to claim 3 wherein the control points are established on a scene-by-scene basis of the input video data.
 7. A method according to claim 2 comprising providing a control for manually adjusting a value of a first parameter, the control configured to, in response to a manual control adjustment, adjust the value of a first parameter and adjust a value of a second parameter by an amount proportional to the adjustment of the value of the first parameter.
 8. A method according to claim 7 wherein the adjustment of the second parameter value is calibrated to maintain a pre-adjustment ratio among the first parameter value, the second parameter value and a value of a third parameter.
 9. A method according to claim 2 wherein obtaining the input video data metadata comprises extracting input video data metadata from the input video data.
 10. A method according to claim 9 wherein extracting input video data metadata from the input video data comprises computing a luminance statistic.
 11. A method according to claim 10 wherein automatically determining the at least one of the initial values comprises determining a maximum extremity parameter based on the luminance statistic.
 12. A method according to claim 10 wherein automatically determining the at least one of the initial values comprises determining a minimum extremity control parameter based on the luminance statistic.
 13. A method according to claim 10 wherein automatically determining the at least one of the initial values comprises determining a mid-tone control parameter based on the luminance statistic.
 14. A method according to claim 9 wherein extracting input video data metadata comprises obtaining a map of light sources for at least one frame of the input video data and determining a light source luminance threshold based on the map of light sources.
 15. A method according to claim 14 wherein automatically determining the at least one of the initial values comprises determining a high range sharpness parameter based on the light source luminance threshold.
 16. A method according to claim 9 wherein extracting input video data metadata comprises obtaining a low level noise threshold for the input video data.
 17. A method according to claim 16 wherein automatically determining the at least one of the initial values comprises determining a low range sharpness parameter based on the low level noise threshold.
 18. A method according to claim 2 wherein the input video data metadata comprises one or more video data acquisition parameters for the input video data.
 19. A method according to claim 2 comprising obtaining an identification of a salient region of the input video data, and wherein obtaining the input video data metadata comprises extracting input video data metadata from the salient region.
 20. Apparatus for color grading input video data for display on a target display, the apparatus comprising: an input configured to receive input video data; an initial parameter generator configured to generate initial values for parameters of a parameterized transfer function, wherein the parameters comprise a plurality of control points which characterize the parameterized transfer function, at least one of the initial values based at least in part on at least one of target display metadata indicative of a capability of a target display and input video data metadata indicative of image characteristics of the input video data; and, a mapping unit configured to apply the parameterized transfer function characterized by the initial values to the input video data to generate color-graded video data, wherein the parameterized transfer function comprises a mid-range region, the mid-range region being linear in log-log space or approaching linearity in log-log space.
 21. A method according to claim 20 wherein the parameterized transfer function further comprises a non-linear region in log-log space.
 22. Apparatus according to claim 21 wherein the control points comprise a minimum extremity control point, a mid-tone control point, and a maximum extremity control point.
 23. Apparatus according to claim 22 wherein the control points further comprise a footroom control point and a headroom control point.
 24. Apparatus according to claim 20 wherein the control points are established on a scene-by-scene basis of the input video data.
 25. Apparatus according to claim 21 comprising a control interface comprising a control for manually adjusting a value of a first parameter, the control configured to, in response to a manual control adjustment, adjust the value of a first parameter and adjust a value of a second parameter by an amount proportional to the adjustment of the value of the first parameter.
 26. Apparatus according to claim 25 wherein the adjustment of the second parameter value is calibrated to maintain a pre-adjustment ratio among the first parameter value, the second parameter value and a value of a third parameter.
 27. Apparatus according to claim 21 wherein the initial parameter generator is configured to extract input video data metadata from the input video data.
 28. Apparatus according to claim 27 wherein the initial parameter generator is configured to extract input video data metadata from the input video data by computing a luminance statistic.
 29. Apparatus according to claim 28 wherein the initial parameter generator is configured to automatically determine the at least one of the initial values by determining a maximum extremity parameter based on the luminance statistic.
 30. Apparatus according to claim 28 wherein the initial parameter generator is configured to automatically determine the at least one of the initial values by determining a minimum extremity control parameter based on the luminance statistic.
 31. Apparatus according to claim 28 wherein the initial parameter generator is configured to automatically determine the at least one of the initial values by determining a mid-tone control parameter based on the luminance statistic.
 32. Apparatus according to claim 27 wherein the initial parameter generator is configured to obtain a map of light sources for at least one frame of the input video data and determine a light source luminance threshold based on the map of light sources.
 33. Apparatus according to claim 32 wherein the initial parameter generator is configured to automatically determine the at least one of the initial values by determining a high range sharpness parameter based on the light source luminance threshold.
 34. Apparatus according to claim 27 wherein the initial parameter generator is configured to obtain a low level noise threshold for the input video data.
 35. Apparatus according to claim 34 wherein the initial parameter generator is configured to automatically determine the at least one of the initial values by determining a low range sharpness parameter based on the low level noise threshold.
 36. Apparatus according to claim 21 wherein the input video data metadata comprises one or more video data acquisition parameters for the input video data.
 37. Apparatus according to claim 21 wherein the initial parameter generator is configured to obtain an identification of a salient region of the input video data, and wherein obtaining the input video data metadata comprises extracting input video data metadata from the salient region. 